#ifndef GAME_POOL_H
#define GAME_POOL_H

#include <map>
#include "gameThread.h"

class gamePool
{
 public :
  bool	addToMap(gameThread *, int id);
  std::map<int, gameThread *>	getMap() { return mapPool;};

  static gamePool		       *getInstance()
  {
    if (instanceSingleton == NULL)
      instanceSingleton = new gamePool();
    return instanceSingleton;
  }

 private :
  
  gamePool();
  ~gamePool();
   static gamePool			*instanceSingleton;
   
  std::map<int, gameThread *>		mapPool;
};

#endif
